<template>
	<view class="content">

	</view>
</template>

<script>
	export default {
		data() {
			return {
				status: 0,
				timer: null
			}
		},
		watch: {
			status: {
				handler(v) {
					clearTimeout(this.timer)
					this.timer = setTimeout(() => {
						if (v) {
							this.jumpUrl('/pages/user/note/save/save')
						} else {
							uni.switchTab({
								url: '/pages/tabbar/user/index/index'
							})
						}
					}, 100)
				},
				immediate: true,
				deep: true
			}
		},
		onShow() {
			this.status = 0
		},
		onTabItemTap(e) {
			this.status = 1
		},
		onLoad() {
			let timer = setTimeout(() => {
				clearTimeout(timer)
				this.$store.commit('UPDATE_TABBAR_VISIBLE_TYPE', 'user')
			}, 100)
		},
		methods: {

		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
